package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 公用 文件表
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-03
 */
@TableName("com_file")
public class ComFile extends Model<ComFile> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 关联ID
     */
    @TableField("relation_id")
    private Long relationId;
    /**
     * 文件地址
     */
    private String url;
    /**
     * 是否租车图片 首页图片  1 是 2 否
     */
    @TableField("is_car_index")
    private Integer isCarIndex;
    /**
     * 文件类型 1 图片 2 音频 3 视频
     */
    @TableField("file_type")
    private Integer fileType;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Long createTime;

    /**
     * 文件名字
     */
    @TableField("file_name")
    private String fileName;
    /**
     * 身份证 正反面标识  1 正面 2 反面
     */
    @TableField("card_side")
    private Integer cardSide;

    /**
     * 营业执照正反面标志  1 正面 2 反面
     */
    @TableField("license_side")
    private Integer licenseSide;
    /**
     * 营业执照正反面标志  1 正面 2 反面
     */
    @TableField("system_id")
    private Integer systemId;

    public Integer getSystemId() {
        return systemId;
    }

    public void setSystemId(Integer systemId) {
        this.systemId = systemId;
    }





    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getCardSide() {
        return cardSide;
    }

    public void setCardSide(Integer cardSide) {
        this.cardSide = cardSide;
    }

    public Integer getLicenseSide() {
        return licenseSide;
    }

    public void setLicenseSide(Integer licenseSide) {
        this.licenseSide = licenseSide;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getIsCarIndex() {
        return isCarIndex;
    }

    public void setIsCarIndex(Integer isCarIndex) {
        this.isCarIndex = isCarIndex;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ComFile{" +
                "id=" + id +
                ", relationId=" + relationId +
                ", url='" + url + '\'' +
                ", isCarIndex=" + isCarIndex +
                ", fileType=" + fileType +
                ", createTime=" + createTime +
                ", fileName='" + fileName + '\'' +
                ", cardSide=" + cardSide +
                ", licenseSide=" + licenseSide +
                '}';
    }
}
